<?php
if ($replyCount > 0) {
    foreach ($replyList as $reply) {
        //如果当前用户点过赞 则使用实心的赞图标 如果没有则使用镂空的
        $isCommentUp = false;
        if ($reply->UpCount > 0) {
            $isCommentUp = $myComment->comment_up_check($reply->Id, $InputData['comment_parent_type']);
        }
        if ($isCommentUp === true) $recommendIconEx = ''; else $recommendIconEx = 'o-';
        ?>
        <div class="app-gray-background" style="border-top: 1px solid #dedede; padding: 8px 10px">
            <div>
                <b class="app-main-color"><?= $reply->UserName ?>:</b>
                &nbsp;
                <?php if ($InputData['author_id'] == $reply->UserId) { ?>
                    <span class="app-comment-badge app-main-backcolor">作者</span>
                <?php } ?>
                <div onclick="comment_up(<?= $reply->Id ?>,this)"
                     class="am-fr <?php
                     if ($reply->UpCount > 0) echo 'app-comment-up-count-en';
                     else echo 'app-comment-up-count-dis';
                     ?>">
                    <span><?= $reply->UpCount ?></span>
                    <i class="am-icon am-icon-fw am-icon-thumbs-<?= $recommendIconEx ?>up"></i>
                </div>
            </div>
            <div class="app-datetime-color" style="margin-top: 3px"><?= $reply->CommentDt2; ?></div>
            <div onclick="goto_comment_edit('<?= $InputData['comment_id'] ?>','<?= $reply->UserName ?>')"
                 style="margin-top: 3px">
                <?php
                if ($reply->AtUserName != '') echo "回复@{$reply->AtUserName}: ";
                echo $reply->Text;
                ?>
            </div>
        </div>
    <?php }
} ?>